/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mainscreen;

import library.FrameLibraryModule;
import login.LoginScreen;
/**
 *
 * @author TECHNOLOGIES
 */
public class FrameMainMenu extends javax.swing.JFrame {

    /**
     * Creates new form FrameMainMenu
     */
    public FrameMainMenu() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        labelLibraryModule = new javax.swing.JLabel();
        buttonLibrary = new javax.swing.JButton();
        buttonHostel = new javax.swing.JButton();
        buttonBus = new javax.swing.JButton();
        buttonMess = new javax.swing.JButton();
        buttonStore = new javax.swing.JButton();
        buttonMnD = new javax.swing.JButton();
        buttonFeeFine = new javax.swing.JButton();
        buttonExamFee = new javax.swing.JButton();
        buttonBillPayment = new javax.swing.JButton();
        buttonPayRoll = new javax.swing.JButton();
        buttonPaymentGateway = new javax.swing.JButton();
        buttonDonation = new javax.swing.JButton();
        buttonReports = new javax.swing.JButton();
        buttonLedger = new javax.swing.JButton();
        buttonLogBook = new javax.swing.JButton();
        buttonNotification = new javax.swing.JButton();
        buttonAdmin = new javax.swing.JButton();
        buttonLogout = new javax.swing.JButton();
        labelBG = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Module Menu - College Accountant");
        setResizable(false);
        getContentPane().setLayout(null);

        labelLibraryModule.setFont(new java.awt.Font("Courier New", 1, 24)); // NOI18N
        labelLibraryModule.setForeground(new java.awt.Color(255, 255, 255));
        labelLibraryModule.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labelLibraryModule.setText("Modules Menus");
        getContentPane().add(labelLibraryModule);
        labelLibraryModule.setBounds(120, 10, 300, 40);

        buttonLibrary.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonLibrary.setText("Library");
        buttonLibrary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonLibraryActionPerformed(evt);
            }
        });
        getContentPane().add(buttonLibrary);
        buttonLibrary.setBounds(20, 70, 250, 20);

        buttonHostel.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonHostel.setText("Hostel");
        buttonHostel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonHostelActionPerformed(evt);
            }
        });
        getContentPane().add(buttonHostel);
        buttonHostel.setBounds(20, 100, 250, 20);

        buttonBus.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonBus.setText("Bus");
        buttonBus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonBusActionPerformed(evt);
            }
        });
        getContentPane().add(buttonBus);
        buttonBus.setBounds(20, 130, 250, 20);

        buttonMess.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonMess.setText("Mess Cafeteria");
        getContentPane().add(buttonMess);
        buttonMess.setBounds(20, 160, 250, 20);

        buttonStore.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonStore.setText("Store");
        getContentPane().add(buttonStore);
        buttonStore.setBounds(20, 190, 250, 20);

        buttonMnD.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonMnD.setText("Maintenance & Development");
        getContentPane().add(buttonMnD);
        buttonMnD.setBounds(20, 220, 250, 20);

        buttonFeeFine.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonFeeFine.setText("Student Fee/Fine");
        getContentPane().add(buttonFeeFine);
        buttonFeeFine.setBounds(20, 250, 250, 20);

        buttonExamFee.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonExamFee.setText("Examination fee");
        getContentPane().add(buttonExamFee);
        buttonExamFee.setBounds(20, 280, 250, 20);

        buttonBillPayment.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonBillPayment.setText("Bill payments");
        getContentPane().add(buttonBillPayment);
        buttonBillPayment.setBounds(290, 70, 250, 20);

        buttonPayRoll.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonPayRoll.setText("Payroll Management");
        getContentPane().add(buttonPayRoll);
        buttonPayRoll.setBounds(290, 100, 250, 20);

        buttonPaymentGateway.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonPaymentGateway.setText("Payement");
        getContentPane().add(buttonPaymentGateway);
        buttonPaymentGateway.setBounds(290, 130, 250, 20);

        buttonDonation.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonDonation.setText("Donation");
        getContentPane().add(buttonDonation);
        buttonDonation.setBounds(290, 160, 250, 20);

        buttonReports.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonReports.setText("Reports");
        getContentPane().add(buttonReports);
        buttonReports.setBounds(290, 190, 250, 20);

        buttonLedger.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonLedger.setText("General Ledger");
        getContentPane().add(buttonLedger);
        buttonLedger.setBounds(290, 220, 250, 20);

        buttonLogBook.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonLogBook.setText("Log Book/Audit Log");
        getContentPane().add(buttonLogBook);
        buttonLogBook.setBounds(290, 250, 250, 20);

        buttonNotification.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonNotification.setText("Notification - Reminder");
        getContentPane().add(buttonNotification);
        buttonNotification.setBounds(290, 280, 250, 20);

        buttonAdmin.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonAdmin.setText("Admin");
        getContentPane().add(buttonAdmin);
        buttonAdmin.setBounds(20, 310, 250, 20);

        buttonLogout.setFont(new java.awt.Font("Courier New", 1, 14)); // NOI18N
        buttonLogout.setText("Logout");
        buttonLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonLogoutActionPerformed(evt);
            }
        });
        getContentPane().add(buttonLogout);
        buttonLogout.setBounds(290, 310, 250, 20);

        labelBG.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/loginbg.jpg"))); // NOI18N
        getContentPane().add(labelBG);
        labelBG.setBounds(0, 0, 1920, 1200);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonLibraryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonLibraryActionPerformed
        // TODO add your handling code here:
        library.FrameLibraryModule libraryScreen = new library.FrameLibraryModule();
        libraryScreen.setExtendedState(libraryScreen.MAXIMIZED_BOTH);
        libraryScreen.setVisible(true);
    }//GEN-LAST:event_buttonLibraryActionPerformed

    private void buttonLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonLogoutActionPerformed

        LoginScreen logScreen = new LoginScreen();
        logScreen.setSize(800, 550);
        logScreen.setLocationRelativeTo(null);
        logScreen.setVisible(true);
    }//GEN-LAST:event_buttonLogoutActionPerformed

    private void buttonHostelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonHostelActionPerformed
        // TODO add your handling code here:
        
        library.libraryPanel panelLibrary = new library.libraryPanel();
        panelLibrary.setVisible(true);
    }//GEN-LAST:event_buttonHostelActionPerformed

    private void buttonBusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonBusActionPerformed
         
        library.TestLibraryFrame testLibraryFrame = new library.TestLibraryFrame();
        testLibraryFrame.setExtendedState(testLibraryFrame.MAXIMIZED_BOTH);
        testLibraryFrame.setVisible(true);
    }//GEN-LAST:event_buttonBusActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrameMainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrameMainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrameMainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrameMainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                FrameMainMenu frameMainMenu=  new FrameMainMenu();
                frameMainMenu.setSize(600, 400);
                frameMainMenu.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonAdmin;
    private javax.swing.JButton buttonBillPayment;
    private javax.swing.JButton buttonBus;
    private javax.swing.JButton buttonDonation;
    private javax.swing.JButton buttonExamFee;
    private javax.swing.JButton buttonFeeFine;
    private javax.swing.JButton buttonHostel;
    private javax.swing.JButton buttonLedger;
    private javax.swing.JButton buttonLibrary;
    private javax.swing.JButton buttonLogBook;
    private javax.swing.JButton buttonLogout;
    private javax.swing.JButton buttonMess;
    private javax.swing.JButton buttonMnD;
    private javax.swing.JButton buttonNotification;
    private javax.swing.JButton buttonPayRoll;
    private javax.swing.JButton buttonPaymentGateway;
    private javax.swing.JButton buttonReports;
    private javax.swing.JButton buttonStore;
    private javax.swing.JLabel labelBG;
    private javax.swing.JLabel labelLibraryModule;
    // End of variables declaration//GEN-END:variables
}
